<template>
<div>
  <div class="overlay over-position"></div>
  <div id="gridList" class="gridList">
    <div class="grid-title">
      <slot name="title"></slot>
    </div>
    <div class="grid-content">
      <slot></slot>
    </div>
    <div class="grid-foot">
      <slot name="foot"></slot>
    </div>
  </div>
  </div>
</template>

<script>
export default {
  name: "grid-list"
};
</script>

<style lang="scss" scoped>
.gridList {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: absolute;
  top: 50px;
  bottom: 50px;
  left: 20px;
  right: 20px;
  background: #fff;
  z-index: 101;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
  padding: 10px;
  .grid-title {
    text-align: center;
    font-size: 15px;
    padding: 5px;
  }
  .grid-content {
    overflow: auto;
    height: 100%;
  }
  .grid-foot {
    padding: 10px;
    width: 100%;
    text-align: center;
  }
}
.overlay {
  opacity: 0.4;
  background-color: rgb(0, 0, 0);
  z-index: 100;
}
.over-position {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
</style>


